package com.hyt.it.ogt.pj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.pj.model.entity.StudentAnswer;

/**
 * <p>
 * 考生作答表 Mapper 接口
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface StudentAnswerMapper extends BaseMapper<StudentAnswer> {

    List<StudentAnswer> selectByProject(@Param("projectId") String projectId);
    
    
    
    List<StudentAnswer> selectByProjectAndSubjectId(@Param("projectId") String projectId, @Param("subjectId") String subjectId);

    /**
     * 考生答案表中删除对应需要撤销评卷的考生答案
     * @param projectId 评卷项目id
     * @param admissionNums 准考证号
     * @return 是否成功
     */
    boolean removeStudentAnswer(@Param("projectId") String projectId, List<String> admissionNums);

}
